package com.util;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;

import oracle.net.aso.s;

public class IPUtil {
	private static ResourceBundle bundle = PropertyResourceBundle.getBundle("com.config.serviceconfig");
	private static ResourceBundle verify = PropertyResourceBundle.getBundle("com.config.verify");
	
	private static String isLogUploads = bundle.getString("isLogUploads");
	private static String sip = bundle.getString("imgip");
	private static String filepath = bundle .getString("filepath");
	private static String filelog = bundle .getString("filelog");
	private static String rongyunzhuce = verify.getString("rongyunzhuce");
	private static String yunfuwu = verify.getString("yunfuwu");
	private static String heartOpen = verify.getString("heartOpen");
	private static String isrongyunzhuce = verify.getString("isrongyunzhuce");
	
	
	private static String lingshilianwang = bundle.getString("lingshilianwang");
	public static String getIp(){
		String ip = "http://"+sip;
		return ip;
	} 
	
	public static String getFilePath(){
		return filepath;
	}
	
	public static String getFileLogPath(){
		return filelog;
	}
	
	public static String getIsrongyunzhuce(){
		return isrongyunzhuce;
	}
	public static String getRongyunzhuce(){
		return rongyunzhuce;
	}
	public static int getLingshilianwang(){
		return Integer.parseInt(lingshilianwang);
	}
	
	public static String getYunfuwu(){
		return yunfuwu;
	}
	public static String getHeartOpen(){
		return heartOpen;
	}
	
	public static String getIsLogUploads(){
		return isLogUploads;
	}
	
}
